package com.itheima.fanxing;

import com.itheima.domain.Student;

/**
 * 测试自定义泛型类
 *
 */
public class Test03 {

    public static void main(String[] args) {
        Box<String> box= new Box<>();
        box.setT("鹿晗");
        System.out.println(box.getT());

        Student student = new Student("吴亦凡", 30);
        Box<Student>  box2=new Box<>();
        box2.setT(student);
        System.out.println(box2.getT());


    }
}
